#include <QtGui>
 #include <QDebug>
#include <math.h>
#include <QFileDialog>
#include "genenetwork.h"
#include "biotablewidget.h"
#include "biosage.h"

//QDebug qDebug;

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));

    QGraphicsScene scene;
    scene.setSceneRect(-700, -350, 1400, 700);
    scene.setItemIndexMethod(QGraphicsScene::NoIndex);

    BioSage bioSAGE;// = new BioSage;
    scene.addItem( &bioSAGE );

    QGraphicsView view(&scene);
    view.setRenderHint(QPainter::Antialiasing);
    view.setBackgroundBrush(QBrush(Qt::black));

    view.setCacheMode(QGraphicsView::CacheBackground);
    view.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
    view.setDragMode(QGraphicsView::ScrollHandDrag);

    view.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Gene Network Widget"));
    view.resize(1400,700);
    view.show();

    QTimer timer;
    QObject::connect(&timer, SIGNAL(timeout()), &scene, SLOT(advance()));
    timer.start(1000 / 33);

    return app.exec();
}

